﻿@{
    ViewBag.Title = "Administración Central";
}

<script type="text/javascript">
    function Volver() {
        document.getElementById('ButtonClick').value = "Volver";
        document.forms['Formulario'].submit();
    }
    function Detalles(e) {
        document.getElementById('ButtonClick').value = "Detalles";
        document.getElementById('OP').value = e;
        document.forms['Formulario'].submit();
    }
</script>

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "Formulario" })) 
{
    <table width="100%">
        <tr>
            <td>
                Nombre Solicitante
            </td>
            <td>
                RUT Solicitante
            </td>
            <td>
                Teléfono Contacto
            </td>
            <td>
                Correo Electrónico
            </td>
        </tr>
        <tr>
            <td>
                Juan Pérez
            </td>
            <td>
                12345678-9
            </td>
            <td>
                5555555
            </td>
            <td>
                Juan.Perez@gmail.com
            </td>
            <td>
                <label onclick="Detalles('1')"><a>Ver Detalle</a></label>
            </td>
        </tr>
        <tr>
            <td>
                Juan Ollarce
            </td>
            <td>
                11345678-9
            </td>
            <td>
                5555555
            </td>
            <td>
                Juan.Ollarce@gmail.com
            </td>
            <td>
                <label onclick="Detalles('2')"><a>Ver Detalle</a></label>
            </td>
        </tr>
        <tr>
            <td>
                Luis Gatica
            </td>
            <td>
                12345678-9
            </td>
            <td>
                5555555
            </td>
            <td>
                Luis.Gatica@gmail.com
            </td>
            <td>
                <label onclick="Detalles('3')"><a>Ver Detalle</a></label>
            </td>
        </tr>
    </table>
    <br />
    <center>
    <input type="hidden" id="ButtonClick" name="ButtonClick" />
    <input type="hidden" id="OP" name="OP" />
    <input type="button" value="Volver" onclick="Volver()" />
    </center>
}